package org.alino.core.mybatis;

/**
 * Created by Brant Liu on 2016/4/30.
 * Description MySql数据库分页语句
 */
public class MySQLDialect extends Dialect {
    @Override
    public String getLimitString(String sql, int Offset, int limit) {
        //去掉前后空格
        sql = sql.trim();
        String pagingSelect = sql +" limit "+ Offset+","+limit;
        return pagingSelect;
    }
}
